export const validatorPassword = (string) => {
  let regNum = /[0-9]/,
    regStr = /[a-z]/i;
  const isNumber = regNum.test(string);
  const isString = regStr.test(string);
  if (isNumber == true && isString == true) {
    return true;
  } else if (isNumber == true && isString == false) {
    return '密码不能为纯数字！';
  } else if (isNumber == false && isString == true) {
    return '密码不能为纯字符串！';
  } else if(string==""){
   return '密码不能为空！';
  }
}